package com.hxzy.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxzy.shop.entity.StoreInnerQualification;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description 门店关联资质
 * @Author hu-yf
 * @Data 2022/6/13 11:13
 */
@Mapper
public interface StoreInnerQualificationMapper extends BaseMapper<StoreInnerQualification> {

    /**
     * 查询商户的资质
     * @param storeId
     * @return
     */
    @Select(value = "select qalification_address from store_inner_qualification where store_id=#{storeId}")
    List<String> qalificationAddressByStoreId(Long storeId);
}
